<template>
	<view>
		<button type="primary" @click="sendMsg">给父组件传值</button>
		<button type="default" @click="fn">呵呵哈哈哈</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				status: '打篮球'
			}
		},
		props: ['msg'],
		methods: {
			sendMsg() {
				this.$emit('myEvent', this.status)
			},
			fn(){
				uni.$emit("xiongdi",this.status)
			}
		}
	}
</script>

<style>
</style>
